package com.example.user.service;

import com.alibaba.dubbo.config.annotation.Service;
import com.example.common.api.user.UserService;
import com.example.common.model.User;
import com.example.user.dao.UserDao;
import org.springframework.beans.factory.annotation.Autowired;


/**
 * @Auther: Aaron
 * @Date: 2018/8/20 16:07
 * @Description:
 */
@Service(version = "1.0.0")
@org.springframework.stereotype.Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;

    @Override
    public String hello() {
        return "hello likelook";
    }

    @Override
    public User findUserByName(String username) {
        return userDao.findUserByName(username);
    }
}
